package cn.hd.gateWayService;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * created by dsl on 2022/6/25
 */
@SpringBootApplication(scanBasePackages = {"cn.hd"})
@EnableDiscoveryClient//将网关注入到nacos服务
public class GateWayServiceApplication {
    public static void main(String[] args) {
        //去除Failed to rename context [nacos] as [logback] java.lang.IllegalStateException: Context has been already given a name错误
        System.setProperty("nacos.logging.default.config.enabled","false");
        SpringApplication.run(GateWayServiceApplication.class,args);
    }
}
